package com.eastfair.venuebooking.vo;

import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.venuebooking.demand.PriceListSpaceGroup;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * vo
 * 场地表
 * </p>
 *
 * @author lyw
 * @since 2022-06-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
public class SpacePriceUnitVO implements Serializable {


    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long id;
    /**
     * 计价方式编码
     */
    @VoInfo(groups = {PriceListSpaceGroup.QueryPriceListSpace.class})
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty(value = "计价方式编码")
    private String unitCode;

    /**
     * 价格
     */
    @VoInfo(groups = {PriceListSpaceGroup.QueryPriceListSpace.class})
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    /**
     * 场地id
     */
    @ApiModelProperty(value = "场地id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long spaceId;
}
